﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchaseOrderEdit.aspx.cs" Inherits="Main_ServiceInvoice_PurchaseOrderEdit" culture="en-GB" uiculture="en-GB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%@ Register Src="~/User Controls/MCalender.ascx" TagPrefix="mcal" TagName="Calender" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Purchase Order Edit</title>
    <link rel="Stylesheet" href="../../Styles/accounts.css" type="text/css" />
   <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="True"
        runat="server">
    </asp:ScriptManager>
    <%--<div class="divmain" style="width:110%;">--%>
    <acc:heading ID="pagehead" runat="server" HeadingText="Purchase Order Edit" />
    <asp:UpdateProgress DynamicLayout="False" ID="UpdProgress" runat="server">
        <ProgressTemplate>
            <div align="center">
                <img src="../../Images/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:HiddenField ID="hidFormatFrist" runat="server" />
    <asp:HiddenField ID="hidFormatSecond" runat="server" />
    <asp:HiddenField ID="hidPOId" runat="server" Value="0" />
    <div style="width: 98%; margin-left: 5px; margin-top: 10px;">
        <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>--%>
        <div style="margin-left: 5%; margin-right: 5%; width: 90%" align="center">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="True" EnableViewState="False"></asp:Label>
        </div>
        <div style="margin: 2px;">
         
        <table class="tablecontent" style="width: 100%">
            <tr>
                <td class="headtd" colspan="4">
                    Purchase Order Details
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    Bill Format<span style="color: Red">*</span>
                </td>
                <td style="width: 35%;">
                    <asp:DropDownList ID="ddlFormat" runat="server" Width="175px" CssClass="dropdown"
                    AutoPostBack="True" OnSelectedIndexChanged="ddlFormat_SelectedIndexChanged"></asp:DropDownList>
                </td>
                <td style="width: 15%">
                    Date<span style="color: Red">*</span>
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtDate" runat="server" Width="80px" CssClass="input" AutoPostBack="True"
                        OnTextChanged="txtDate_TextChanged" ValidationGroup="V"></asp:TextBox>
                    <asp:ImageButton ID="btnDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <AjaxControl:CalendarExtender ID="cal" runat="server" PopupButtonID="btnDate" TargetControlID="txtDate"
                        Format="dd/MM/yyyy">
                    </AjaxControl:CalendarExtender>
                    <AjaxControl:MaskedEditExtender ID="maskExt" runat="server" MaskType="Date" Mask="99/99/9999"
                        TargetControlID="txtDate" CultureName="en-GB">
                    </AjaxControl:MaskedEditExtender>
                    <AjaxControl:MaskedEditValidator ID="maskValid" runat="server" ControlExtender="maskExt"
                        InvalidValueMessage="Invalid Date" IsValidEmpty="true" Display="Dynamic" ValidationGroup="V"
                        ControlToValidate="txtDate"></AjaxControl:MaskedEditValidator>
                    <%--<mcal:Calender ID="POCal" runat="server" TargetControlId="txtDate"/>--%>
                </td>
            </tr>
            <tr>
                <td>
                    P.O. No.<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtPrefix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onKeydown="return false"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="prefixWater" runat="server" TargetControlID="txtPrefix"
                        WatermarkText="Prefix" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txtVoucher" runat="server" Width="70px" CssClass="inputnumber" ValidationGroup="V"
                        MaxLength="10"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="voucherWater" runat="server" TargetControlID="txtVoucher"
                        WatermarkText="Number" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txtSuffix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onKeydown="return false"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="suffixWater" runat="server" TargetControlID="txtSuffix"
                        WatermarkText="Suffix" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <%--<asp:RequiredFieldValidator ID="reqVoucher" runat="server" SetFocusOnError="true" ControlToValidate="txtVoucher" ValidationGroup="V" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
                <td>
                    Client<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlClients" runat="server" Width="240px" CssClass="dropdown"></asp:DropDownList>
                    <%--<asp:RequiredFieldValidator ID="reqSupplier" runat="server" ControlToValidate="ddlSupplier" InitialValue="0" ValidationGroup="V" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td>
                    Payment Mode<span style="color: Red">*</span>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                <asp:RadioButtonList ID="rbtCashCredit" runat="server" 
                                    onclick="CreditDaysChecked(this.id);" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="Cash" Selected="True" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Credit" Value="1"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCreditDay" runat="server" onKeyPress="return isNumberKey(this.id,event)"
                                    Enabled="False" Width="30px" CssClass="inputnumber" onblur="CreditDays();" 
                                    MaxLength="3"></asp:TextBox>&nbsp;Days
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    Priority
                </td>
                <td>
                    <asp:DropDownList ID="ddlpriorities" runat="server" CssClass="dropdown">
                      <asp:ListItem  Text="Regular" Value="0"></asp:ListItem>
                      <asp:ListItem Text="Urgent" Value="1" ></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <%--  </ContentTemplate>
         </asp:UpdatePanel>--%>
    </div>
    <div style="width: 98%; margin-top: 10px; margin-left: 5px">
        <asp:HiddenField id="hidControl" Value="1" runat="server" />
        <table id="tblPODetails" runat="server" style="width: 100%" class="tablecontent"
            cellpadding="2" cellspacing="0">
            <tr>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Delete
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Nature of Services
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Descriptions
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Unit
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Rate
                </td>
                <td style="border-bottom: 1px solid #818181; text-align: center; font-weight: bold">
                    Total Amount
                </td>
            </tr>
            <tr>
                <td style="width: 5%; vertical-align: top" align="center">
              <asp:CheckBox ID="chkDelete1" runat="server" Width="98%" onclick="checkAlLChecked();" />
              </td>
                <td style="width: 19%; vertical-align: top">
                   <asp:DropDownList ID="ddlService1" runat="server" Width="98%" CssClass="dropdown"
                       AutoPostBack="true"
                       OnSelectedIndexChanged="ddlService_SelectedIndexChanged">
                   </asp:DropDownList>
                    <asp:HiddenField ID="hidChkTaxableVal1" runat="server" Value="0" />
                    <asp:HiddenField ID="hidPOChildIdVal1" runat="server" Value="0" />
                </td>
                <td style="width: 19%; vertical-align: top">
                    <asp:TextBox ID="txtDescription1" runat="server" CssClass="input" Width="98%" 
                        AutoCompleteType="Disabled"></asp:TextBox>
                </td>
                <td style="width: 19%; vertical-align: top">
                    <asp:TextBox ID="txtUnit1" runat="server" CssClass="inputnumber" onKeyPress="return isNumberKey(this.id,event);"
                        onblur="return CalculateAmount();" Width="98%"></asp:TextBox>
                </td>
                <td style="width: 19%; vertical-align: top">
                    <asp:TextBox ID="txtRate1" runat="server" CssClass="inputnumber" Width="98%" onKeyPress="return isNumberKey(this.id,event);"
                        onblur="return CalculateAmount();" AutoCompleteType="Disabled"></asp:TextBox>
                    <asp:HiddenField ID="hidServiceTaxAmtVal1" runat="server" />
                    <asp:HiddenField ID="hidPECessAmtVal1" runat="server" />
                    <asp:HiddenField ID="hidHECessAmtVal1" runat="server" />
                </td>
                <td style="width: 19%; vertical-align: top">
                    <asp:TextBox ID="txtTotalAmt1" runat="server" CssClass="DisableInputNumber" Width="98%"
                        onkeydown="return EnabledTabKey(this.id,event);" 
                        AutoCompleteType="Disabled"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 98%; margin: 5px;">
        <tr>
            <td>
                <asp:LinkButton ID="btnAddMore" runat="server" OnClick="btnAddMore_Click"><img src="../../Images/More.jpg" alt="Add New Row" /></asp:LinkButton>
                &nbsp;&nbsp;
             </td>
        </tr>
    </table>
    <div style="width: 98%; margin-top: 5px; margin-left: 5px">
        <table width="100%" class="tablecontent">
            <tr>
                <td valign="top" style="width: 50%">
                    <table width="100%" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="width: 30%;">
                                Prepared by
                            </td>
                            <td style="width: 70%;">
                                <asp:TextBox ID="txtPreparedBy" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Checked By
                            </td>
                            <td>
                                <asp:TextBox ID="txtCheckedBy" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Narration
                            </td>
                            <td>
                                <asp:TextBox ID="txtNarration" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Remarks
                            </td>
                            <td>
                                <asp:TextBox ID="txtRemarks" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" style="width: 50%">
                    <table width="100%" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="width: 50%">
                                Total Taxable Amt
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalTaxableAmt" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                Total Non Taxable Amt
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalNonTaxableAmt" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            Service Tax
                                            <asp:HiddenField ID="hidServiceTaxRateVal" runat="server" Value="0" />
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblServiceTaxRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalServiceTax" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            P.E.Cess
                                            <asp:HiddenField ID="hidPECessRateVal" runat="server" Value="0" />
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblPECessRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalPECess" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            H.E.Cess
                                           <asp:HiddenField ID="hidHECessRateVal" runat="server" Value="0" />
                                         
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblHECessRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalHECess" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                Grand Total
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtGrandTotal" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <div style="width: 98%">
        <table style="width: 98%; text-align: center">
            <tr>
                <td>
                    <asp:Button ID="btnSubmit" Text="Update" runat="server" CssClass="button" 
                       OnClientClick="return ValidationInput();" OnClick="btnSave_Click" 
                        ValidationGroup="V" />
                    &nbsp;
                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="button" 
                        onclick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>


    <script type="text/javascript" language="javascript">

        function EnabledTabKey(id, e) {
            var keycode;
            if (window.event) {
                keycode = window.event.keyCode;
            }
            else if (e) {
                keycode = e.which;
            }
            else {
                return true;
            }
            if (keycode == 9) {
                // if is the tab key
                return true;
            }
            else {
                return false;
            }
        }

        function CalculateAmount() {
            var Count = document.getElementById("hidControl").value;
            var ServiceTaxRate = document.getElementById("hidServiceTaxRateVal").value;
            var PECessRate = document.getElementById("hidPECessRateVal").value;
            var HECessRate = document.getElementById("hidHECessRateVal").value;

            var totalTaxable = 0;
            var totalNonTaxable = 0;
            var totalServiceTax = 0;
            var totalPECess = 0;
            var totalHECess = 0;

            for (var i = 1; i <= Count; i++) {
                var chkDelete = document.getElementById("chkDelete" + i.toString());
                if (chkDelete.checked != true) {
                    var totalAmt = 0;
                    var ServiceTaxAmt = 0;
                    var PECessAmt = 0;
                    var HECessAmt = 0;
                    var Unit = document.getElementById("txtUnit" + i).value;
                    var Rate = document.getElementById("txtRate" + i).value;
                    var Taxability = document.getElementById("hidChkTaxableVal" + i).value;
                    if (Unit == '') {
                        Unit = 0;
                    }
                    if (Rate == '') {
                        Rate = 0;
                    }
                    if (document.getElementById("ddlService" + i).value != '0') {
                        totalAmt = parseFloat(Unit) * parseFloat(Rate);
                        if (Taxability == '1') {
                            ServiceTaxAmt = (parseFloat(totalAmt) * parseFloat(ServiceTaxRate)) / 100;
                            PECessAmt = (parseFloat(ServiceTaxAmt) * parseFloat(PECessRate)) / 100;
                            HECessAmt = (parseFloat(ServiceTaxAmt) * parseFloat(HECessRate)) / 100;
                            totalTaxable += parseFloat(totalAmt);
                        }
                        else {
                            totalNonTaxable += parseFloat(totalAmt);
                        }
                        totalServiceTax += parseFloat(ServiceTaxAmt);
                        totalPECess += parseFloat(PECessAmt);
                        totalHECess += parseFloat(HECessAmt);

                        document.getElementById("hidServiceTaxAmtVal" + i).value = parseFloat(ServiceTaxAmt).toFixed(2);
                        document.getElementById("hidPECessAmtVal" + i).value = parseFloat(PECessAmt).toFixed(2);
                        document.getElementById("hidHECessAmtVal" + i).value = parseFloat(HECessAmt).toFixed(2);
                        document.getElementById("txtTotalAmt" + i).value = parseFloat(totalAmt).toFixed(2);
                    }
                }
            }
            document.getElementById("txtTotalTaxableAmt").value = parseFloat(totalTaxable).toFixed(2);
            document.getElementById("txtTotalNonTaxableAmt").value = parseFloat(totalNonTaxable).toFixed(2);
            document.getElementById("txtTotalServiceTax").value = parseFloat(totalServiceTax).toFixed(2);
            document.getElementById("txtTotalPECess").value = parseFloat(totalPECess).toFixed(2);
            document.getElementById("txtTotalHECess").value = parseFloat(totalHECess).toFixed(2);
            var GrandTotal = parseFloat(totalTaxable) + parseFloat(totalNonTaxable) + parseFloat(totalServiceTax) + parseFloat(totalPECess) + parseFloat(totalHECess);
            document.getElementById("txtGrandTotal").value = parseFloat(GrandTotal).toFixed(2);
        }

        function CreditDays() {
            if (document.getElementById("txtCreditDay").value != '') {
                var days = document.getElementById("txtCreditDay").value;
                if (parseFloat(days) > 365) {
                    alert('Maximum Credit Days is 365 days');
                    document.getElementById("txtCreditDay").value = '365';
                }
            }
        }
        function CreditDaysChecked(id) {
            var Radiolist = document.getElementById(id);
            var Inputs = Radiolist.getElementsByTagName("input");
            for (var i = 0; i < Inputs.length; i++) {
                if (Inputs[i].checked) {
                    if (Inputs[i].value == '0') {
                        document.getElementById("txtCreditDay").value = '';
                        document.getElementById("txtCreditDay").disabled = true;
                    }
                    else if (Inputs[i].value == '1') {
                        document.getElementById("txtCreditDay").disabled = false
                    }
                }
            }
        }


        function RoundOff() {
            var posttax = document.getElementById("txtPostTaxTotal").value;
            if (document.getElementById("txtRoundoff").value != '') {
                var roundoff = document.getElementById("txtRoundoff").value;
                var GrandTotal = parseFloat(posttax) + parseFloat(roundoff);
                document.getElementById("txtGrandTotal").value = GrandTotal.toFixed(2);
            }
            else {
                document.getElementById("txtRoundoff").value = '0.00'
                document.getElementById("txtGrandTotal").value = parseFloat(posttax).toFixed(2);
            }
        }

        function ValidateItems() {
            var flag = true;
              var chk=1;
            if (document.getElementById("ddlFormat").value == '0') {
                alert('Please Select Bill Format ');
                document.getElementById("ddlFormat").focus();
                flag = false;
                chk=2;
            }
            else if (document.getElementById("txtDate").value == '' || document.getElementById("txtDate").value == '__/__/____') {
                alert('Please Specify P.O. Date');
                document.getElementById("txtDate").focus();
                flag = false;
                chk=2;
            }
            else if (document.getElementById("txtVoucher").value == '' || document.getElementById("txtVoucher").value == 'Number') {
                alert('Please Specify Voucher Number');
                document.getElementById("txtVoucher").focus();
                flag = false;
                chk=2;
            }
            else if (document.getElementById("ddlClients").value == '0') {
                alert('Please Select Client ');
                document.getElementById("ddlClients").focus();
                flag = false;
                chk=2;
            }

            else if (document.getElementById("ddlService1").value == '0') {
                alert('Please Select At Least One Service ');
                document.getElementById("ddlService1").focus();
                flag = false;
                chk=2;
            }
            else if (document.getElementById("txtUnit1").value == '') {
                alert('Please Specify Unit For First Service');
                document.getElementById("txtUnit1").focus();
                flag = false;
                chk=2;
            }
            else if (document.getElementById("txtRate1").value == '') {
                alert('Please Specify Rate For Service');
                document.getElementById("txtRate1").focus();
                flag = false;
                chk=2;
            }
//            else {
//                return flag;
//            }
               if(chk == 1)
               {
                var Count = document.getElementById("hidControl").value;
                for (var i = 2; i <= Count; i++)
                {
                  if(document.getElementById("ddlService" + i).value == "-Select-" || document.getElementById("ddlService" + i).value == '0')
                  {
                    alert("Please select Nature of services !");
                           document.getElementById("ddlService" + i).focus();
                           flag=false;
                           break;
                  }
                  else if(document.getElementById("txtUnit"+i).value =='0' || document.getElementById("txtUnit"+i).value =='')
                  {
                    alert("Please enter Unit !");
                    document.getElementById("txtUnit"+i).focus();
                    flag=false;
                    break;
                  }
                  else if(document.getElementById("txtRate"+i).value == '0' || document.getElementById("txtRate"+i).value=='')
                  {
                    alert("Please enter Rate !");
                    document.getElementById("txtRate"+i).focus();
                    flag=false;
                    break;
                  }
                }
               }
            return flag;
        }

        function ValidationInput()
         {           
            if (ValidateItems() == true)
            {
//               if(ValidateItems1() == true)
//               {
                return true;
//               }
            }
            else
             {
                return false;
             }
        }
        function checkAlLChecked() {
            var Count = document.getElementById("hidControl").value;
            var j = 0;
            for (var i = 1; i <= Count; i++) {
                var checkbx = document.getElementById("chkDelete" + i.toString());
                if (checkbx.checked == true) {
                    j++;
                }
                if (j == Count) {
                    alert("All record can't be deleted !");
                    checkbx.checked = false;
                    break;
                }
            }
            document.getElementById("txtUnit1").focus();
        }
         
    </script>

   <%-- <script src="../../Menu/js/jquery.min.js" type="text/javascript"></script>--%>

 <%--   <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>--%>

    <script src="../../JavaScript/Commons.js" type="text/javascript"></script>

    </form>
</body>
</html>
